#include <stdio.h>
#include <stdlib.h>

void main()
{
    char s[80], c = 'a';
    int i = 0;
    scanf("%s", s);
    while (s[i++] != '\0')
    {
        if (s[i] == c)
        {
            s[i] = s[i] - 32;
        }
        else if (s[i] == c - 32)
        {
            s[i] = s[i] + 32;
        }
    }
    puts(s);

    system("pause");
}